﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Store.Manager.ERP.Domain.Entities
{
    public class Organization
    {
        [SugarColumn(IsPrimaryKey = true)]
        public string Code { get; set; } // 组织唯一标识
        public string Name { get; set; } // 组织名称
        [SugarColumn(IsNullable =true)]
        public string? ParentCode { get; set; } // 上级组织 ID，用于构建层级关系
        public string? Address { get; set; } // 组织地址
        public string? ContactPerson { get; set; } // 联系人
        public string? ContactPhone { get; set; } // 联系电话
    }
}
